package io;

import java.io.*;

public class search {
	
	public static void main(String[] args) {
		
		String[] files = new String[100];
		File search = new File(".");
		files = search.list();
		
		if(files == null) 
			System.out.println(files);
		else {
			for (String fn : files)
				System.out.println("found: " + fn);
			System.out.print("total of files and directories: " + files.length);
		}
	}
	
}
